import {IUserInfo} from "@/api/types/user";

/**
 * 公共请求模块
 */
export interface IListParams {
  pageSize: number;
  pageNum: number;
  sortField?: any;
  sortOrder?: any;
  [key: string]: string | any
}


export interface ILoginForm {
  username: string;
  password: string;
}

export interface ILoginResponse {
  token: string;
  expiresIn: number;
  userInfo: IUserInfo;
}


export interface IResponse<T> {
  code: string
  data: T
  rows: Array<T>
  total: number
  message: string
}
